#ifndef _MUTEX_H_
#define _MUTEX_H_

#include "winstdtools.h"

#ifdef WIN
	#include <windows.h>
#else
	#include <pthread.h>
#endif

namespace StdTools
{
	namespace Threads
	{

#ifdef WIN
		class STDTOOLS_API Mutex
#else
		class Mutex
#endif
		{
		private:
#ifdef WIN
			CRITICAL_SECTION m_mutex;
#else
			pthread_mutex_t m_mutex;
#endif
		public:
			Mutex(void);
			~Mutex(void);
			void lock();
			void unlock();
		};
	}
}

#endif